home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
gnu
/
flex_247.zip
/
flex_247
/
MISC
/
Think-C
/
macutils.c
next >
Wrap
C/C++ Source or Header
|
1992-01-28
|
437b
|
27 lines
#ifdef THINK_C
#include <Memory.h>
#include <Resources.h>
#include <stdio.h>
#include <stdlib.h>
#include "flexdef.h"
/**
** Load a static table from the current resource file
**/
short int *load_table (int id)
{
Handle h;
if ((h = GetResource ('YYst', id)) == NULL) {
fputs ("error loading static table resource", stderr);
putc ('\n', stderr);
exit (1);
}
MoveHHi (h);
HLock (h);
return (short int *) *h;
}
#endif